<style type="text/css">
    #divIcon a{
        text-decoration: none; 
        color: green;
        font-size: 12px;

    }
    #divIcon a:hover {color: brown; font-size: 12px;}
    td{text-align: left; width: 10%;}
</style>
<?php
if ($this->session->userdata('addcategory_ms')) {
    echo $this->session->userdata('addcategory_ms');
    echo $this->session->unset_userdata('addcategory_ms');
}
?>   
<div class="tabBody">
    <fieldset style="margin: 0 auto;width:60%;height: 300px; border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">

        <legend align="center" style="magin:auto;"><div  style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 14px;color:#006600;">View Card Details</div></legend>
        <form>

            <table  border="0" align="center" width="100%">

                <?php
                echo '<div style="float: right; border: 0px #ccc solid; margin-right: 15px;">';
                echo anchor('sale_management/sale_card', img('images/user_images/cancel.png'));
                echo '</div>';
                ?>
                <br />
                <?php
                echo '<tr>';
                $J = 1;
                foreach ($value_card->result() as $view_detial) {
                    echo '<th style="width:10%;">N&ordm;</th>';
                    echo '<td style="text-align:left;">:</td>';
                    echo '<td>' . $J . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Card Name</th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->car_name . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Customer Name </th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->stu_name . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Price </th>';
                    echo '<td>:</td>';
                    echo '<td>$' . $view_detial->sal_price . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Quantity </th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->sal_quantity . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th >Sale_Date </th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->sal_date . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Sale Type </th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->use_username . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Sub_Total </th>';
                    echo '<td>:</td>';
                    echo '<td>$' . $view_detial->sal_price * $view_detial->sal_quantity . '</td>';
                    echo '</tr>';
                    echo '<tr>';
                    echo '<th>Description </th>';
                    echo '<td>:</td>';
                    echo '<td>' . $view_detial->sal_description . '</td>';
                    echo '</tr>';
                }
                ?>
                </tr>
            </table>
        </form>
        </legend>
    </fieldset>

    <div style="clear: both;"></div>

    <div style="clear:both"></div>
</div>
